package modellayer;
import java.util.ArrayList;
import java.io.*;

/**
 * Write a description of class FastKunde here.
 * 
 * @author (Kasper) 
 * @version (05.12.2014)
 */
public class FastKunde extends Kunde implements Serializable
{
    private int kontonr;
    private double kundegrp;
    
    /**
     * Constructor for objects of class FastKunde
     */
    public FastKunde(String navn, String adresse, String postnr, String by, String tlf, String email, int kontonr, double kundegrp)
    {
        super(navn, adresse, postnr, by, tlf, email);
        this.kontonr = kontonr;
        this.kundegrp = kundegrp;
    }
    
    /**
     * Method getKontonr
     *
     * @return kontonummer
     */
    public int getKontonr()
    {
        return kontonr;
    }
    
    /**
     * Method setKontonr
     *
     * @param kontonummer
     */
    public void setKontonr(int kontonr)
    {
        this.kontonr = kontonr;
    }
    
    /**
     * Method getKundegrp
     *
     * @return kundegruppe
     */
    public double getKundegrp()
    {
        return kundegrp;
    }
    
    /**
     * Method setKundegrp
     *
     * @param kundegruppe
     */
    public void setKundegrp(double kundegrp)
    {
        this.kundegrp = kundegrp;
    }
    
    /**
     * Method toString
     * 
     * Returns a String text with information about a customer
     *
     * @return text
     */
    public String toString()
    {
        String text = 
        super.toString() +
        "Kontonr: " + kontonr + "\n" +
        "Kundegruppe: " + kundegrp + "\n";
        
        return text;
    }
}
